package com.topInterview;

public class leecode171 {
    public int process(String s) {
        char[] chars = s.toCharArray();
        int ans = 0;
        for (int i = 0; i < chars.length; i++) {
            ans = ans * 26 + (chars[i] - 'A') + 1;
        }
        return ans;
    }
}
